<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>animation</title>
    <link rel="stylesheet" href="./css/animate.css">
    <style>
        .animated.box{
            width: 200px;
            height: 200px;
            background-color: rgb(216, 106, 106);
            margin:100px auto;
            animation: fadeOutDown 1s infinite ;
            /* animation-delay: 1s; */
            /* animation-duration: 5s; */
            animation-play-state: paused;
        }
        button:active+.box{
            animation-play-state: running;
        }
    </style>
</head>
<body>
    <button>按住开始动画</button>
    <div class="box animated ">

    </div>
    
    
</body>
</html>